package com.fansl.allround.common.security.service;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/9/25 11:57
 */
public class AllroundUcenterUser extends User{
    @Getter
    private Integer userId;
    public AllroundUcenterUser(Integer userId,String username, String password,
                               Collection<? extends GrantedAuthority> authorities,boolean enabled) {
        super(username, password, enabled, true, true, true, authorities);
        this.userId = userId;
    }
}
